# encoding: utf-8
from flask import render_template
from app.forms import *
from app.models import Blog
from . import home

@home.route("/")
def index():
    """首页"""
    form = BlogForm()
    blogs = Blog.getList()
    return render_template("index.html", form=form, blogs=blogs)
